package com.hundsun.hsOffer.utils;

import java.util.List;
import java.util.Map;

/**
 * Create By IDEA
 * User:giegie
 * Date:2016/8/21
 * Description:easyuitree
 */
public class TreeNode {
    private String id;

    private String text;

    private String pid;

    private String state = "closed";

    private List<TreeNode> children;

    private Map<String,Object> attributes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }


    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Map<String, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, Object> attributes) {
        this.attributes = attributes;
    }
}
